package com.base.saas.delivery.config;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * @author 王清亮
 * @date 2025/10/2 9:36
 * @description TODO
 */
@Configuration
public class SentinelConfig {

    @Bean
    @Order(Ordered.HIGHEST_PRECEDENCE)
    public SentinelResourceAspect sentinelResourceAspect() {
        return new SentinelResourceAspect();
    }
}
